/* 桌面软件风格样式系统 */

:root {
  /* 桌面软件风格的颜色变量 */
  --desktop-primary-color: #1890ff;
  --desktop-success-color: #52c41a;
  --desktop-warning-color: #faad14;
  --desktop-error-color: #f5222d;
  --desktop-info-color: #1890ff;
  
  /* 桌面软件风格的边框和阴影 */
  --desktop-border-radius: 0px; /* 将圆角改为0，实现直角 */
  --desktop-border-color: #d9d9d9;
  --desktop-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
  --desktop-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
  --desktop-shadow-lg: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  
  /* 桌面软件风格的间距 */
  --desktop-padding-xs: 8px;
  --desktop-padding-sm: 12px;
  --desktop-padding-md: 16px;
  --desktop-padding-lg: 24px;
  --desktop-padding-xl: 32px;
  
  /* 桌面软件风格的字体 */
  --desktop-font-size-sm: 12px;
  --desktop-font-size: 14px;
  --desktop-font-size-lg: 16px;
  --desktop-font-size-xl: 20px;
  
  /* 桌面软件风格的高度 */
  --desktop-height-sm: 24px;
  --desktop-height: 32px;
  --desktop-height-lg: 40px;
}

/* 暗色主题变量 */
.dark {
  --desktop-border-color: #434343;
  --desktop-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
  --desktop-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.32), 0 3px 6px 0 rgba(0, 0, 0, 0.24), 0 5px 12px 4px rgba(0, 0, 0, 0.18);
  --desktop-shadow-lg: 0 6px 16px 0 rgba(0, 0, 0, 0.16), 0 3px 6px -4px rgba(0, 0, 0, 0.24), 0 9px 28px 8px rgba(0, 0, 0, 0.1);
}

/* 桌面软件风格的基础样式 */
.desktop-card {
  background-color: var(--n-color);
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-sm);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.desktop-card:hover {
  border-color: var(--desktop-primary-color);
  box-shadow: var(--desktop-shadow);
}

.desktop-panel {
  background-color: var(--n-color);
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  padding: var(--desktop-padding-md);
  box-shadow: var(--desktop-shadow-sm);
}

.desktop-button {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-sm);
  transition: all 0.3s;
  font-weight: 500;
}

.desktop-button:hover {
  box-shadow: var(--desktop-shadow);
  transform: translateY(-1px);
}

.desktop-input {
  border-radius: var(--desktop-border-radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.desktop-input:focus {
  border-color: var(--desktop-primary-color);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.desktop-select {
  border-radius: var(--desktop-border-radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.desktop-select:focus {
  border-color: var(--desktop-primary-color);
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.desktop-table {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  overflow: hidden;
  box-shadow: var(--desktop-shadow-sm);
}

.desktop-modal {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-lg);
  overflow: hidden;
}

.desktop-drawer {
  box-shadow: var(--desktop-shadow-lg);
}

.desktop-dropdown {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-lg);
  border: 1px solid var(--desktop-border-color);
}

.desktop-tooltip {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow);
}

.desktop-popover {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-lg);
  border: 1px solid var(--desktop-border-color);
}

.desktop-message {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow);
}

.desktop-notification {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-lg);
  border: 1px solid var(--desktop-border-color);
}

.desktop-tag {
  border-radius: calc(var(--desktop-border-radius) / 2);
  font-weight: 500;
}

.desktop-progress {
  border-radius: calc(var(--desktop-border-radius) / 2);
}

.desktop-slider {
  border-radius: calc(var(--desktop-border-radius) / 2);
}

.desktop-switch {
  border-radius: calc(var(--desktop-border-radius) / 2);
}

.desktop-radio {
  border-radius: 50%;
}

.desktop-checkbox {
  border-radius: calc(var(--desktop-border-radius) / 2);
}

.desktop-tree {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  padding: var(--desktop-padding-sm);
}

.desktop-transfer {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
}

.desktop-calendar {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  overflow: hidden;
}

.desktop-date-picker {
  border-radius: var(--desktop-border-radius);
}

.desktop-time-picker {
  border-radius: var(--desktop-border-radius);
}

.desktop-upload {
  border: 1px dashed var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  transition: border-color 0.3s;
}

.desktop-upload:hover {
  border-color: var(--desktop-primary-color);
}

.desktop-rate {
  color: var(--desktop-warning-color);
}

.desktop-steps {
  border-radius: var(--desktop-border-radius);
}

.desktop-breadcrumb {
  color: var(--n-text-color-2);
}

.desktop-pagination {
  border-radius: var(--desktop-border-radius);
}

.desktop-back-top {
  border-radius: 50%;
  box-shadow: var(--desktop-shadow);
}

.desktop-anchor {
  border-right: 2px solid var(--desktop-border-color);
}

.desktop-affix {
  box-shadow: var(--desktop-shadow);
}

.desktop-list {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
}

.desktop-skeleton {
  border-radius: var(--desktop-border-radius);
}

.desktop-empty {
  color: var(--n-text-color-3);
}

.desktop-result {
  border-radius: var(--desktop-border-radius);
}

.desktop-statistic {
  color: var(--n-text-color-1);
}

.desktop-timeline {
  border-left: 2px solid var(--desktop-border-color);
}

.desktop-description {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
}

.desktop-alert {
  border-radius: var(--desktop-border-radius);
  border-left-width: 4px;
}

.desktop-spin {
  color: var(--desktop-primary-color);
}

.desktop-menu {
  border-right: 1px solid var(--desktop-border-color);
}

.desktop-menu-horizontal {
  border-bottom: 1px solid var(--desktop-border-color);
}

.desktop-submenu {
  border-radius: var(--desktop-border-radius);
}

.desktop-layout {
  background-color: var(--n-color);
}

.desktop-layout-header {
  background-color: var(--n-color);
  border-bottom: 1px solid var(--desktop-border-color);
  box-shadow: var(--desktop-shadow-sm);
}

.desktop-layout-sider {
  background-color: var(--n-color);
  border-right: 1px solid var(--desktop-border-color);
}

.desktop-layout-content {
  background-color: var(--n-color);
}

.desktop-layout-footer {
  background-color: var(--n-color);
  border-top: 1px solid var(--desktop-border-color);
}

.desktop-form {
  border-radius: var(--desktop-border-radius);
}

.desktop-form-item {
  margin-bottom: var(--desktop-padding-md);
}

.desktop-tabs {
  border-bottom: 1px solid var(--desktop-border-color);
}

.desktop-tab-pane {
  padding: var(--desktop-padding-md);
}

.desktop-collapse {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
}

.desktop-collapse-item {
  border-bottom: 1px solid var(--desktop-border-color);
}

.desktop-collapse-item:last-child {
  border-bottom: none;
}

.desktop-divider {
  border-top: 1px solid var(--desktop-border-color);
}

.desktop-space {
  display: flex;
  align-items: center;
}

.desktop-space-vertical {
  display: flex;
  flex-direction: column;
}

.desktop-typography {
  color: var(--n-text-color-1);
}

.desktop-typography-secondary {
  color: var(--n-text-color-2);
}

.desktop-typography-success {
  color: var(--desktop-success-color);
}

.desktop-typography-warning {
  color: var(--desktop-warning-color);
}

.desktop-typography-error {
  color: var(--desktop-error-color);
}

.desktop-typography-disabled {
  color: var(--n-text-color-3);
}

.desktop-row {
  display: flex;
  flex-wrap: wrap;
}

.desktop-col {
  flex: 1;
}

.desktop-grid {
  display: grid;
}

.desktop-image {
  border-radius: var(--desktop-border-radius);
  box-shadow: var(--desktop-shadow-sm);
}

.desktop-qr-code {
  border: 1px solid var(--desktop-border-color);
  border-radius: var(--desktop-border-radius);
  padding: var(--desktop-padding-sm);
}

.desktop-mention {
  border-radius: calc(var(--desktop-border-radius) / 2);
  background-color: var(--n-color-2);
}

.desktop-mention:hover {
  background-color: var(--n-color-3);
}